04e5fac9fd99e757f620b34a6c4977f07997caa6,shell/src/main/java/tachyon/shell/command/CopyFromLocalCommand.java,CopyFromLocalCommand,copyPath,#File#TachyonURI#,141
Before Change
if (errorMessages.size() != 0) {
if (errorMessages.size() == fileList.length) {
// If no files were created, then delete the directory
TachyonFile f = mTfs.openIfExists(dstPath);
if (f != null) {
mTfs.delete(f);
}
}
After Change
if (errorMessages.size() != 0) {
if (errorMessages.size() == fileList.length) {
// If no files were created, then delete the directory
if (mTfs.exists(dstPath)) {
mTfs.delete(dstPath);
}
}